﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS
{
    [DataContract, Table("message_reply")]
    public class MessageReply
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Column("reply_seq")]
        public int ReplyId { get; set; }

        [DataMember, Column("reply_date")]
        public DateTime? ReplyDate { get; set; }

        [DataMember, Column("ref_no")]
        public string RefNo { get; set; }

        [DataMember, Column("reply_type")]
        public string ReplyType { get; set; }

        [DataMember, Column("reply_text")]
        public string ReplyText { get; set; }

        [DataMember, Column("from_emp_seq")]
        public int? FromEmpId { get; set; }

        [DataMember, Column("from_pos_seq")]
        public int? FromPosId { get; set; }

        [DataMember, Column("to_emp_seq")]
        public int? ToEmpId { get; set; }

        [DataMember, Column("to_pos_seq")]
        public int? ToPosId { get; set; }
        [DataMember, Column("wod_emp_seq")]
        public int? WodEmpId { get; set; }

        [DataMember, Column("from_send_seq")]
        public int? FromSendId { get; set; }

        [DataMember, Column("remarks")]
        public string Remarks { get; set; }

        [DataMember, Column("message_status")]
        public string MessageStatus { get; set; }

        [DataMember, Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Column("created_by")]
        public int? CreatedBy { get; set; }

        [DataMember, Column("created_when")]
        public DateTime? CreatedWhen { get; set; }

        [DataMember, Column("updated_by")]
        public int? UpdatedBy { get; set; }

        [DataMember, Column("updated_when")]
        public DateTime? UpdatedWhen { get; set; }

    }
}

//[DataContract, Table("MessageReply")]
//public class MessageReply
//{
//    [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
//    [DataMember]
//    public int ReplyId { get; set; }

//    [DataMember]
//    public DateTime? ReplyDate { get; set; }

//    [DataMember]
//    public string RefNo { get; set; }

//    [DataMember]
//    public string ReplyType { get; set; }

//    [DataMember]
//    public string ReplyText { get; set; }

//    [DataMember]
//    public int? FromEmpId { get; set; }

//    [DataMember]
//    public int? ToEmpId { get; set; }

//    [DataMember]
//    public int? FromSendId { get; set; }

//    [DataMember]
//    public string Remarks { get; set; }

//    [DataMember]
//    public string MessageStatus { get; set; }

//    [DataMember]
//    public string RecordStatus { get; set; }

//    [DataMember]
//    public int? CreatedBy { get; set; }

//    [DataMember]
//    public DateTime? CreatedWhen { get; set; }

//    [DataMember]
//    public int? UpdatedBy { get; set; }

//    [DataMember]
//    public DateTime? UpdatedWhen { get; set; }

//}